package com.example.zhunongzonghe.dao;

import com.example.zhunongzonghe.entity.ZnFarmproduce;
import com.github.yulichang.base.MPJBaseMapper;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;


@Mapper
public interface ZnFarmproduceMapper extends MPJBaseMapper<ZnFarmproduce> {
    /**
     * 热门排行
     * @return
     */
    List<ZnFarmproduce> getTopProducts();

    /**
     * 随机显示6条数据
     * @return
     */
    List<ZnFarmproduce> getRandomProducts();
}
